package com.ht;

import com.ht.config.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableSwagger2
@EnableFeignClients
@EnableDiscoveryClient  //支持所有的注册中心,包括eureka
public class AcceptsServiceAPP {
    public static void main(String[] args) {
        SpringApplication.run(AcceptsServiceAPP.class,args);
    }

    @Bean
    public IdWorker idWorker(){
        return new IdWorker();
    }
}
